<?php

namespace app\xwam\controller;

/**
 * IndexController控制器
 *
 * @since 1.0.0 <2015-03-21> SoChishun <14507247@qq.com> Added.
 */
class IndexController extends AppbaseController {

    public function index() {
        // 主菜单资料
        //$menus = \app\xwam\model\RuleModel::getMenus();
        //$this->assign('menus', $menus);
        $menus=\app\xwam\model\MenuModel::getMenus();
        $this->assign('menus',$menus);
        return view('index/index');
    }

    public function home() {
        return view();
    }

    // 2016-5-9 sochishun added.
    public function desktop() {
        // 主菜单资料
        $m_rule = new \app\xwam\model\RuleModel();
        $this->assign('menuset', $m_rule->get_menus());
        return view();
    }

    function about() {
        return view();
    }

}
